package com.logistics.modules.transportationManagement.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.logistics.modules.financialManagement.entity.FreightEntity;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * 
 * @author HURRICANE
 * @email HURRICANE@nb.com
 * @date 2022-05-14 10:48:35
 */
@Data
@NoArgsConstructor
@TableName("vehiclemoveorderdetails")
@JsonIgnoreProperties(value = {"handler"})
public class VehiclemoveorderdetailsEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id 自增
	 */
	@TableId
	private Integer id;

	/**
	 * 车辆移动订单id
	 */
	private Integer vehicleMoveOrderId;

	/**
	 * 运输计划Id
	 */
	private Integer moveplanId;
	/**
	 * 运费
	 */
	private Integer freightId;
	/**
	 * 小计
	 */
	private Double subtotalMoney;
	/**
	 * 删除状态（0，正常，1已删除）
	 */
	private Integer delFlag;

	/**
	 * 运费
	 */
	@TableField(exist = false)
	private FreightEntity freight;

	/**
	 * 行动计划
	 */
	@TableField(exist = false)
	private MoveplanEntity movePlan;



	public VehiclemoveorderdetailsEntity(Integer vehicleMoveOrderId, Integer moveplanId, Double subtotalMoney) {
		this.vehicleMoveOrderId = vehicleMoveOrderId;
		this.moveplanId = moveplanId;
		this.subtotalMoney = subtotalMoney;
	}
}
